import request from '@/utils/request'

// 查询雨量列表
export function listRainQuantity(query) {
  return request({
    url: '/manage/rainQuantity/list',
    method: 'get',
    params: query
  })
}

// 查询雨量详细
export function getRainQuantity(rainQuanityId) {
  return request({
    url: '/manage/rainQuantity/' + rainQuanityId,
    method: 'get'
  })
}

// 新增雨量
export function addRainQuantity(data) {
  return request({
    url: '/manage/rainQuantity',
    method: 'post',
    data: data
  })
}

// 修改雨量
export function updateRainQuantity(data) {
  return request({
    url: '/manage/rainQuantity',
    method: 'put',
    data: data
  })
}

// 删除雨量
export function delRainQuantity(rainQuanityId) {
  return request({
    url: '/manage/rainQuantity/' + rainQuanityId,
    method: 'delete'
  })
}

export function genRainData() {
  return request({
    url: '/rainSituation/genRSData',
    method: 'get'
  })
}
